Fix a variable is undefined forever