Fix the case where the number of jobs is less than the