wml: Fix infinite loop.

I had forgotten to increment the induction variable; what a silly
mistake.

Thanks hoelzro, whoever you are.