Fix exception when zooming.