fixing directory ref