Fix regression and overflow bug for rationals.