fixed bug when closing windows in overview