Fix undeclared var