Fixed flashing when exiting a game