fix a bug regarding repetition