Fix duplicates error