Fixed mixed-up numerator and denominator in division