fix dup checks