Correct broken maths.