fix the variable reference