Fixed a bug in pagination in the Search Results