Replace scene error

ill try to replace scene with CCDirector::sharedDirector->recplaceScene()
i have scene with mainLayer on it,
on mainLayer i added menuLayer,
mainLayer has 2 callback functions
menuLayer createMenu with buttons wich call functions in mainLayer class
when i try replcace scene when menu button pressed i get bad access in method

  1. void CCNode::arrayMakeObjectsPerformSelector(CCArray* pArray, callbackFunc func)
  2. {
  3. if(pArray && pArray->count() > 0)
  4. {
  5. CCObject* child;
  6. CCARRAY_FOREACH(pArray, child)
  7. {
  8. CCNode* pNode = (CCNode*) child;
  9. if(pNode && (0 != func))
  10. {
  11. (pNode->*func)(); <—— bad access error
  12. }
  13. }
  14. }
  15. }

im log constructor of my scene wich i want to show and saw that its destructor called, why? how to replace scene correctly?
what im doing wrong?