Fix next page counter