fix a bug in mergeToParent