fixed tfidf major bug