Fix issue about minibuffer and folder without permission