Bug fixes

Fix to some issues in .NET SMI SDK
bug fixes