Correction to: Nature Neuroscience https://doi.org/10.1038/s41593-024-01604-8, published online 25 March 2024.

In the version of the article initially published, the y axis of Fig. 5h read “0, 25, 25, 25, 25, 25, 30” and has now been corrected to “0, 5, 10, 15, 20, 25, 30” in the HTML and PDF versions of the article.