Fix pagination in ranking