Fix ephemera pruning and SVG elements