Search pagination now actually works