Changed the number of winddow due to modfied the managemant of window.