Fixed for each loop syntax