fix mkdir problem