Fixing a bug in emulator start