Correct copying of objects