fixing dirty tree