fix for dash integration & cocos2d crash