Fix deprecated variable reference