fix the mag orientations from MAGR