Fix job control bug.