1.Fix the bug that the job will not switch automatically