Remove more than two times duplicates