Fixed the ranking formula.