Fixed issue with wrong value being used to scroll when the page control ui element triggers a change page event