Fix deletion process of jobs when entry is deleted