fix duplicate variable declarations in the same function