Fix undefined variable reference.