fixed issues with multiple parents and subtree spacing