fixed broken subtrees