Fixed compatibility with newest SDK.