Fix: pagination in search results

This fixes the pagination in search results