Fix dir base