Fixed search result pagination (thanks AA)