fix directory creation mode