correct paging in search page