Fixing repetitions problem when it was greater than 9.