[x] fix dir bug