Correction to: Nature Neuroscience https://doi.org/10.1038/s41593-023-01286-8. Published online 27 March 2023.

In the version of this article initially published, Clément M. Garin was presented in the author list without a middle initial. The name has been amended in the HTML and PDF versions of the article.