fix search pagination error