get_next_job fix