Fix error removing jobs