Again, if you really mean what you claim in the comment, you need to move the `++` to a post-increment after the array look-up here.