fix adding child problem