fixed a stupid print bug in simulator.