fix the mkdir issue