fix directory base