fixed addChild bug where the children array was not defined before initialize