Fix pagination on public side.