fixed bug in job