fixing directory error