directory reopen fix