Fix z-coord for tree with large trunk-branch angles