fixed fullscreen mode to work better with firefox