fix dupe check