Remove bug from ngram computation