fixed bug in job execution