Bugfix: prevent exceptions when enabling/disabling visualizations