Fix bug that caused cascade jobs to be unassigned when categories generated