Fix search pagination