fix an error

undeclared variable