Fix simulation