page count fix