fixes var reference.