Fixing Mac fullscreen bug