Fixed a bug in unigram cutoff