fixed visualizer bug