fix in ngrams()