Fix the job restart problem