Fix unknown job issue when deleting dead job.