Fix to counter variable reference.