fixed a bug in C# temp model