Fixed compilation error in simulation.