Fixed bug in advancedVisualizer