Fixed for loops.