fix for subtree