modified some error in NGramNode, according to chuan's test.
please check again~ thank you ~