Correction to: Nature Medicine https://doi.org/10.1038/s41591-024-03105-4, published online 6 June 2024.

In the version of the article initially published, two of Javier Martinez-Picado’s affiliations (Catalan Institution for Research and Advanced Studies (ICREA), Barcelona, Spain and Infectious Diseases and Immunity Department, University of Vic-Central University of Catalonia, Vic, Spain) were missing and have now been added to the HTML and PDF versions of the article.