fixing submission of jobs