Fix simulation on cgfi.