directory error remove first