fix errors - C#