fix undefined common_api