eraseFromParent bug fix