Fix directory error.