diff --git a/html/sites/all/modules/popups/popups.js b/html/sites/all/modules/popups/popups.js
index 57be2ab..815a3be 100644
--- a/html/sites/all/modules/popups/popups.js
+++ b/html/sites/all/modules/popups/popups.js
@@ -611,7 +611,7 @@ Popups.restorePage = function() {
   // Remove the CSS files that were jit loaded for popup.
   for (i in Popups.addedCSS) {
     if (Popups.addedCSS.hasOwnProperty(i)) {
-      $('link[href='+ Popups.addedCSS[i] + ']').remove();
+      $('link[href='+ i + ']').remove();
     }
   }
   Popups.addedCSS = [];

