tf-idf bug fixed! works fine now