Fixing arranging windows after closing some of them