fix dir struct