#769 Fix for search pagination bug