Fixed undeclared variable