Fixed loop error with borderless fullscreen