fixed crash when deleting a root task