Correction to: Nature Ecology & Evolution https://doi.org/10.1038/s41559-023-02049-1, published online 27 April 2023.

In the version of the article initially published, the number of a grant from the National Natural Science Foundation of China was listed in the Acknowledgements as 32161123003 instead of 32222055. The error has been corrected in the HTML and PDF versions of the article.