Fix compilation with subtrees