fix deleting of tasks