Fix pagination showing for non-paginated pages