Correction to: Nature 10.1038/s41586-023-06288-x Published online 5 July 2023
In the version of this article initially published, B. K. Lehmkuhl (Department of Biology, Indiana University, Bloomington, IN, USA) was shown with an incorrect affiliation, and Extended Data Table 2 was a duplicate of Extended Data Table 3. The errors have been corrected in the HTML and PDF versions of the article.