fix up reopen issue