Fix for deleting failed jobs