Fixed issue with pagination on categorical searches.