fixed a lot of zoom/pan issues