fix mkdir issue