Bugfix for deleting windows over the limit of reopenable windows.