Fix bug in C# bot support