diff --git a/system/user/addons/stash/mod.stash.php b/system/user/addons/stash/mod.stash.php
index 5ca30c8..1268e30 100755
--- a/system/user/addons/stash/mod.stash.php
+++ b/system/user/addons/stash/mod.stash.php
@@ -3260,7 +3260,7 @@ public function flush_cache()
     private function _matches($match, $against)
     {
         $is_match = TRUE;
-        $match = ee()->security->entity_decode($match);
+        $match = ee('Security/XSS')->entity_decode($match);
 
         if ( ! is_array($against)) 
         {
@@ -5164,4 +5164,4 @@ private function _get_users_vars()
 }
 
 /* End of file mod.stash.php */
-/* Location: ./system/expressionengine/third_party/stash/mod.stash.php */
\ No newline at end of file
+/* Location: ./system/expressionengine/third_party/stash/mod.stash.php */