Debugging problems - C#