fix directory tree