diff --git a/backend/scripts/time_residuals.py b/backend/scripts/time_residuals.py
index 4aa840d0f4cc7154b4fb034036f5d7e21c066277..bd920850db31f3c442a06feb414fe113295bad0e 100755
--- a/backend/scripts/time_residuals.py
+++ b/backend/scripts/time_residuals.py
@@ -75,7 +75,7 @@ def main():
                         histtype='step',
                         lw=2,
                         label=f'DU {du}',
-                        density=true,
+                        density=True,
                         color=linestyle[0],
                         linestyle=linestyle[1])
             ax.legend(loc='upper right')