fix an undeclared variable