fix directory error