bug in copy_properties