fix AreDuplicates