Unlike in the quantum Hall effect and quantum anomalous Hall effect, the quantization precision in the quantum spin Hall effect depends on unavoidable background impurities and defects. However, doping with magnetic ions restores the quantization accuracy.