fix copy of object