Fixed bug where equivalents is called after the unique key replacement.