fix bug handling parameters in simulator