[BUGFIX] Fixed pid 0 problem by copy elements

If you copy content elements, the parent elements are always set on pid 0.