Fix parameter passing in simulator.