Fix dwoo foreach loops