Upon reviewing the above article, the authors found an error in Fig. 2A, where effector CD8+ T cells originating from memory CD8+ T cells (E^1) were mislabelled as E2. Fig. 2A should be replaced by the figure below; Fig. 2B–C and the caption remain unchanged. Moreover, the authors found a typographical error in Eq. 1c, where the parameter κFq (the killing rate of infected cells by natural killer cells) was mistyped as κNq. κNq does not represent any quantity in this study. These typographical errors have no influence on the results and conclusions of the paper. The authors apologise for any inconvenience caused.