fix branch-rate calculation
fix branch-rate calculation