Inifinite memory bug fix.

Misspell i++ for j++. Funny results.