Fixing TfIdf ordering discrepancy