fix zooming, fix crash when graph disabled