Fixed issue when destroying multiple children