Fix for clearing jobs.