Fix iteration variable in AdaGrad.
Avoid potential division by zero.