fix keg var ref