Bug fix in visualizer for determining node type