Fix undeclared variables.