Fix wrong directory creation