avoid could not reparent node error when removing every tag