Fixed the undeclared local variable.

Fixed an undeclared local variable.