Fix the undefined variable reference