fixes fullscreen bug