fix ranking issue