Fixed ubug in jobs.