Fix: pagination in search results

This fixes the pagination in search results
Merge pull request #740 from carlosleopoldo/fix_pagination

Fix: pagination in search results