closed #3419 fix bug for widget addChild