Modify to Cocos2d-x 2.2.2