fix add child and remove child crash.