Fix minor bug in job submission