Fixed bug when undoing a property change.
Tree reordering.