fix pagination search