fix Issue 6652 - 3. Change modifying non ref variable allowed and not affect to loop
Merge pull request #1010 from 9rnsr/fix6652_3

fix Issue 6652 - 3. Change modifying non ref variable allowed and not affect to loop