TFIDF bugs fixed