fix reporting of duplicates