fixs some directory error