Fixed Repetition

fixed Repetition bug.