Fixing page progression to read and return correct value.