Fix missing variable bug caused by refactoring or merge.