fix NUMBER_REPEATS