Only switch to current window scope when necessary