undeclared var fix