Fixed a bug in moving childnode from one node to another