Fixing issue with multiple SVG elements being rendered at once