Improved RFX operation by active magnetic field control