copy_attribute corner case when the origin has no attributes