fixed deleting trees. in more ways than one.