Correction to: Nature Neuroscience https://doi.org/10.1038/s41593-017-0064-2, published online 22 January 2018.

In the version of this article initially published online, the wrong version of Fig. 5 was used. There were errors in the statistical comparison brackets in Fig. 5c and the left-hand error bar in Fig. 5f. The errors have been corrected in the print, PDF and HTML versions of this article. In the version of this article initially published online and in print, the wrong version of Fig. 3h was used. There was a slight error in the alignment of the traces in the top right panel. The error has been corrected in the PDF and HTML versions of this article.

Fig. 3
figure 3

Original and corrected.

Fig. 5
figure 5

Original and corrected.