Copy objects correctly

I hope this helps: