$window fix