Fixed issue concerning crash when zooming (issue #119).