Fixed a positioning bug

After removing a widget from a container (e.g. a box).
Fixed bug copying widgets in boxes

The copy wasn't being added to the correct ancestor.