fix initial fullscreen mode being broken sometimes on mac