Fix simulation hang.