fix dir creation