Fix pagination display for lists