fixed #174 foreach nesting and using same item name cause this bug.