fixed wrong ranking