Fixed issue where fullscreen mode didnt work