fix dup matches