Fix some maths.