fix bug with panzoom