update ugmatch: fix aho-corasick bugs