Fix for fullscreen bug