Crash when opening dir
### Version

moe v0.3.0

Git hash: 55041477408fa515fb1f214a6ff246a385d32309
Build type: Debug

### Environment

_No response_

### Category

None

### Steps to Reproduce

1. `moe ./`

### Detailed Description

Lnik #1881 