fix bug in newJob