Fixed issue where fullscreen mode was dismissed.