min_tree null left-branch fix