fixed update children's parent when merge nodes