Solved a problem with scope

Previously if there was a name conflict due to nested declarations within
statement block, the variables used to retain the nested value even when
the control came out of the block. Fixed this problem.