Fix: no more flickering when switching visualization tabs.