correct paging to match categories and unit test