fixed issue with removing a task