c# fixed compilation error