Fix the window clearing when the number of windows drops.