How to block 2nd repetition