Corrected possible division by zero in Rate class.