Fix error when initializing a variable with an undeclared identifier.