Fixed broken pagination in search results