fixed buggy visualizer