fix rMax condition bug in repeatMatcher