adapt cocos 3.2