Fixed pan bug when reallocating pageview.