Fixed undeclared variable.