fix gotoPercent in page mode

this fixes one of the bug reported in #700