Fractional arithmetic bug fixed