Fixed SVG detection bug