Fix example for loop