Made fullscreen work properly