Fixed bug. Add backup/restore to updateParentNode