fix the var reference