fixed zooming and panning issues on reload