fix sub tree