fix a drectory