fix missing directory error