fixing dir cretion error