Bugfix for model zooming and nullpointer exception