Fix for serious bug with repeats in new performance code

Fixed a bug where repeats would match independent of multiplicity which caused serious serious problems