fixed wrong denominator update