Fix idf ranking

Fix idf ranking