ngrams fix for unigram models