fixes cloning object