A quick workaround to the bug reported by Rebert Nix. (AC algorithm fail to
find match for the pattern having only one char).

While Rebert's fix looks great, it's somehow incur segfault. I will investigate
this problem sometime next week and bring his patch back.