fix Rational divide zero exception