#324: fixing error in simulator