fix CreateDir / conversion