diff --git a/wetb/prepost/Simulations.py b/wetb/prepost/Simulations.py
index 4c6ae07e19fccfe92637da6aaa6b5963d4c38053..ca4688b7471c7a9e6d44c2342313026da5afbe91 100755
--- a/wetb/prepost/Simulations.py
+++ b/wetb/prepost/Simulations.py
@@ -1322,7 +1322,7 @@ def create_chunks_htc_pbs(cases, sort_by_values=['[Windspeed]'], ppn=20,
     nodes = 1
     for ii, dfi in enumerate(df_iter):
         fname = make_zip_chunks(dfi, ii, sim_id, run_dir, model_zip)
-        make_pbs_chunks(df, ii, sim_id, run_dir, model_zip)
+        make_pbs_chunks(dfi, ii, sim_id, run_dir, model_zip)
         print(fname)