Fix missing variable bug.