Fix bug in SDK.