fix the page control bug.