CCSpriteBatchNode cannot add a customized CCSprite

I wrote a subclass of CCSprite. Let’s say it MySprite.
MySprite may have two CCSprite children, both are the same texture as CCSpriteBatchNode.
if CCSpriteBatchNode.add(mySprite), error happens.
I know mySprite’s texture id is different from CCSpriteBatchNode, which causes the error.
But in my scenario, a customized sprite may be very helpful, eg, many little creatures with their lifebars.
Is there any trick to do this?