Fix compile problem in simulation.