Fix search results pagination.