fix emulator startup