trying to fix Logic error in the RateTree