Fix silly typo.

Forgot to increment i in the loop. Oops.