fix cocos require