Correction to: Nature Neuroscience https://doi.org/10.1038/s41593-024-01728-x, published online 5 August 2024.

In the version of the article initially published, the bottom image in Fig. 5i was a duplication of the third-from-bottom image in Fig. 5g. Figure 5i has now been corrected in the HTML and PDF versions of the article.