diff --git a/plugins/removeUnusedNS.js b/plugins/removeUnusedNS.js
index c4787915..db0df760 100644
--- a/plugins/removeUnusedNS.js
+++ b/plugins/removeUnusedNS.js
@@ -66,7 +66,9 @@ exports.fn = function(data) {
svgElem = item;
}
- } else if (xmlnsCollection.length) {
+ }
+
+ if (xmlnsCollection.length) {
// check item for the ns-attrs
if (item.prefix) {
diff --git a/test/plugins/removeUnusedNS.07.svg b/test/plugins/removeUnusedNS.07.svg
new file mode 100644
index 00000000..1ee5350a
--- /dev/null
+++ b/test/plugins/removeUnusedNS.07.svg
@@ -0,0 +1,9 @@
+
+
+@@@
+
+