Fix fullscreen function.