bugfix when zooming