fix directory variables