fix for each loop.