small fix for foreach seting this to item