Fix polar/cartesian conversions.