fix failed directory