Correction to: Nature Neuroscience https://doi.org/10.1038/s41593-025-01942-1, published online 21 April 2025.

In the version of the article initially published, in Fig. 5a, the velocity trace was shifted during figure preparation and therefore misaligned with the fluorescence trace. This has now been corrected in the HTML and PDF versions of the article.