fix creat dir fail