fix creating directory