fix pagination category bug