fixes tf-idf