diff --git a/static/plugin_dbui/src/directstore.js b/static/plugin_dbui/src/directstore.js
index a3f8705515944841729b73654193e89a20d4c2d7..c12e6b11571baeb1e659143145c02e8811ebc7d2 100644
--- a/static/plugin_dbui/src/directstore.js
+++ b/static/plugin_dbui/src/directstore.js
@@ -56,10 +56,10 @@ Ext.define('App.data.DirectStore', {
         }
 
         // copy of the initial where condition
-        if (this.extraParams && this.extraParams.where) {
+        if (config.extraParams && config.extraParams.where) {
             this.initialWhere = [];
-            for (i = 0; i < this.extraParams.where.length; i += 1) {
-                this.initialWhere.push(this.extraParams.where[i]);
+            for (i = 0; i < config.extraParams.where.length; i += 1) {
+                this.initialWhere.push(config.extraParams.where[i]);
             }
         }
 
@@ -112,18 +112,20 @@ Ext.define('App.data.DirectStore', {
 
         "use strict";
 
-        var i;
+        var conditions = [],
+            i;
 
         if (this.extraParams.where) {
 
             if (this.initialWhere) {
-                this.extraParams.where = [];
+
                 for (i = 0; i < this.initialWhere.length; i += 1) {
-                    this.extraParams.where.push(this.initialWhere[i]);
+                    conditions.push(this.initialWhere[i]);
                 }
+                this.getProxy().setExtraParam('where', conditions);
 
             } else {
-                delete this.extraParams.where;
+                delete this.getProxy().extraParams.where;
             }
         }
     }