Fixed emulation bug