fix for submitting deleted tasks to sort