bugfix in sbatch