fixed pasteChildren