Fixed terminal window reopen