Fixed error where parent at bottom of tree did not swap with child.