Fixes search pagination not working.