fix possible emurate bug