bugfix to "can't delete task"