fixed fullscreen race condition bug