[c#] Index was out of range. Must be non-negative and less than the size of the collection parameter name:index