Fixed adding child to parent method.