Correction on loop counter.