fixed non existing directory error