Fix undeclared vars.