bug fixing search pagination