Correction to: Communications Biology https://doi.org/10.1038/s42003-022-03954-0, published online 28 September 2022.

In this article the affiliation Theoretical and Computational Ecology Group, Centre d’Estudis Avançats de Blanes (CEAB-CSIC), Cala Sant Francesc, 14, 17300 Blanes, Spain for Frederic Bartumeus was missing. The original article has been corrected.