Fixed further maths errors