fixed directory error