Fix simulation.