fix dir type