Fix index typo.

Spotted by grahack (issue #1).