fix a directory error