fix: parent id missing if child creation error