Fixed undeclared var