fix ed useless directory