fix the tf-idf problem