correction of wrong display when exiting emulator