Correction to: Nature https://doi.org/10.1038/s41586-021-04059-0Published online 3 November 2021

In the version of this article initially published, the two bottom-left panels in Extended Data Fig. 8b duplicated the top-left and bottom-right panels of Fig. 4d presenting open field traces in mice. The panels have now been replaced with new images.

The errors have been corrected in the online version of the article.