fix CS0818 for foreach statement