Fixed some math.