fix and create dir

cehck