fix compiling error
modify according changes in OnyxSDK