little fix for latest cocos2d