Fix simulation compile error.