fix bug when user tree root had edge length