fixed issue with fullscreen mode