fix directory walk