fix anti repeat