fixed hexMatch bug