Fixed compilation errors due to declaring variables after a goto command.