Fix up pagination on api search