fix pagination count