fix: second directory cannot be opened.