fixing dir creation