Further adjustment to clear the offset variables if we have less the rowmaxpage