[Bug 197416] looping example fails when incrementing loop variable