CCLayerMutiplex switchToAndReleaseMe bug

if you use CCLayerMutiplex::switchToAndReleaseMe(unsigned int n) function,you will find it has a bug that collides with CCArray:
in switchToAndReleaseMe() there is “m_pLayers->replaceObjectAtIndex(m_nEnabledLayer, NULL);” ;
but ccArrayInsertObjectAtIndex() cannot insert NULL.
Now I edit ccArrayInsertObjectAtIndex() to enable to insert NULL,but it is not very good ,please solve this problem.