fixed issue#176 - Nested for loops variable declarations are same