fixed bug: window reopen