How can i fix this code - C#