Fix pagination in item lists