FW-229. Fix the simulation crash problem.