Fixed a bug for the visualizer geometry.