fix paging in search results