fix the bug of "add kmp algorithm" commit.