fix duplicate detection after api change