fix io createdirectory bug