fix search pagination