Correcting directory error