fix fromIntegerInverse with negative denominator