fix'ed broken constraint resolution in tree_parent