Role of resistivity and viscosity in the excitation of stable m = 0 modes during the RFP sawtooth crash