Fix issue where repeated cyclic similarities were not captured.