Fix undeclared variable