fix emulator