fix redeclared vars

You've already declared these vars at the top of the scope.