fixed for cocos2d 2.2.2