diff --git a/Trajectories/plot_traj.py b/Trajectories/plot_traj.py
index c38c79aa5850cdcde5a0e3d0ab46489bcb229635..42f005ee70f86f1156e92695b91f2e1f384c8c69 100755
--- a/Trajectories/plot_traj.py
+++ b/Trajectories/plot_traj.py
@@ -60,9 +60,9 @@ if __name__ == "__main__":
     args = parser.parse_args()
 
     with open(args.expanded_traj) as f:
-        trajectories = json.load(f)
+        expanded_traj = json.load(f)
 
-    print("Number of trajectories:", len(trajectories))
+    print("Number of trajectories:", len(expanded_traj))
 
     with open(args.e_overestim) as f:
         e_overestim = int(f.read())
@@ -74,7 +74,7 @@ if __name__ == "__main__":
     random.seed(0)
     n_long_traj = 0
 
-    for traj in trajectories:
+    for traj in expanded_traj:
         if args.min_duration > 1:
             duration = report_graph.node_to_date_eddy(traj[- 1], e_overestim,
                                                       only_date = True) \