fix pagination problem for deploy