debugging issue - C#