Fix for delete job bad cast.