Fix update subtrees