fixes in magnetic field - removed (r > 0)