fix ranking order