diff --git a/wetb/prepost/Simulations.py b/wetb/prepost/Simulations.py
index 56c96bbd75e1773fe4fb93df5e16000bcd096e9f..4c6ae07e19fccfe92637da6aaa6b5963d4c38053 100755
--- a/wetb/prepost/Simulations.py
+++ b/wetb/prepost/Simulations.py
@@ -1254,7 +1254,7 @@ def create_chunks_htc_pbs(cases, sort_by_values=['[Windspeed]'], ppn=20,
         pbs += 'find %s -iname "*.dat" -iname "*.sel" -print0 ' % res_base
         fname = 'resfiles_chunk_%05i' % ii
         pbs += '| xargs -0 tar --remove-files -rf %s.tar\n' % fname
-        pbs += 'xz -z2 -T 15 %s.tar\n'
+        pbs += 'xz -z2 -T 15 %s.tar\n' % fname
 
         # compress all logfiles into an archive
         pbs += '\necho "move logfiles into compressed archive"\n'