deal with branch lengths that are zero