I think these lines should be in `copy_attributes`