fixed cocos bug