Sequential 'ForEach' functions doesn't work. - C#