bug in loop, wrong varialble in increment

No match.