Fixed bug in Aho-Corasick algorithm.