fix to deleteTask