Correction to: Nature Communications https://doi.org/10.1038/s41467-021-26067-4, published online 1 October 2021.

The original version of this Article contained an error in Figure 4, in which the column labels “Reciprocity” and “Mating” were inadvertently placed in the wrong order. The correct order is “Mating” followed by “Reciprocity”. This has been corrected in both the PDF and HTML versions of the Article.