Fix wrong averaging of B field at the origin with spherical coordinates