fix for error "grafting xml"