bugfix
Code for removing subtasks correctly