fix var reference.