Fix problem making task deletion fail