diff --git a/modules/core/lib/Storage/SQLPermanentStorage.php b/modules/core/lib/Storage/SQLPermanentStorage.php
index 8db457f66e6b6778247c9ebf6c8e39096127b77e..516044fc134a117dc37eb05a55fbc60968e75af8 100644
--- a/modules/core/lib/Storage/SQLPermanentStorage.php
+++ b/modules/core/lib/Storage/SQLPermanentStorage.php
@@ -98,7 +98,7 @@ class SQLPermanentStorage
 
     public function get($type = null, $key1 = null, $key2 = null)
     {
-        $conditions = self::getCondition($type, $key1, $key2);
+        $conditions = $this->getCondition($type, $key1, $key2);
         $query = 'SELECT * FROM data WHERE '.$conditions;
 
         $prepared = $this->db->prepare($query);
@@ -137,7 +137,7 @@ class SQLPermanentStorage
 
     public function getList($type = null, $key1 = null, $key2 = null)
     {
-        $conditions = self::getCondition($type, $key1, $key2);
+        $conditions = $this->getCondition($type, $key1, $key2);
         $query = 'SELECT * FROM data WHERE '.$conditions;
         $prepared = $this->db->prepare($query);
         $prepared->execute();
@@ -159,7 +159,7 @@ class SQLPermanentStorage
             throw new \Exception('Invalid key type');
         }
 
-        $conditions = self::getCondition($type, $key1, $key2);
+        $conditions = $this->getCondition($type, $key1, $key2);
         $query = 'SELECT DISTINCT :whichKey FROM data WHERE '.$conditions;
         $prepared = $this->db->prepare($query);
         $data = array('whichKey' => $whichKey);