refresh defs

When using internal references in defs itself, at least chrome cannot handle a element.node removal without a "refresh" of defs.