fix pagination problem in document/browse