Fixed for loops using the auto keyword