Fix bug when deleting content with multiple subtasks