Fixing bug in job resumption