Fixed #5561: fix addChild issues in Widget's addChild function