Nature 520, 538–541 (2015); doi:10.1038/nature14120

In Extended Data Fig. 1 of this Letter, the northern border of Peru was incorrectly placed, giving a much larger territorial extent to Ecuador than was appropriate. This has now been corrected in the online versions of the manuscript.