Fix afr maths.