diff --git a/bin/donkey.sbatch b/bin/donkey.sbatch
index 1099fb50a200f8e1c86107263bccce291266fc39..67ca28428f5ae480bc27c01ac11bd5ba2b61fa67 100755
--- a/bin/donkey.sbatch
+++ b/bin/donkey.sbatch
@@ -33,7 +33,7 @@ COUNT=0
 while [ $COUNT -lt 10 ]; do
   for inifile in $FILES
   do
-    exec=${inifile%.pdf}
+    exec=${inifile%.ini}
     srun $SRUNOPT ./$exec $inifile
   done
   COUNT=$((COUNT + 1))