Fixing cloning identical references.