diff --git a/mirzaev/yii2/arangodb/Query.php b/mirzaev/yii2/arangodb/Query.php
index 1e45224..1be4619 100644
--- a/mirzaev/yii2/arangodb/Query.php
+++ b/mirzaev/yii2/arangodb/Query.php
@@ -947,7 +947,7 @@ class Query extends Component implements QueryInterface
     {
         // Инициализация
         $this->in ?? $this->in = $this->collection ?? throw new Exception('Не найдена коллекция');
-        $query->collection ?? $query->collection = self::checkArrayAndConvert($query->for);
+        $this->collection ?? $this->collection = self::checkArrayAndConvert($this->for);
 
         $data = Serializer::encode($columns);
 
@@ -994,7 +994,7 @@ class Query extends Component implements QueryInterface
         // Инициализация
         $this->in ?? $this->in = $this->collection ?? throw new Exception('Не найдена коллекция');
         $this->for ?? $this->for = $this->in;
-        $query->collection ?? $query->collection = self::checkArrayAndConvert($query->for);
+        $this->collection ?? $this->collection = self::checkArrayAndConvert($this->for);
 
         $clauses = [
             static::genFor($this->for),
@@ -1046,7 +1046,7 @@ class Query extends Component implements QueryInterface
         // Инициализация
         $this->in ?? $this->in = $this->collection ?? throw new Exception('Не найдена коллекция');
         $this->for ?? $this->for = $this->in;
-        $query->collection ?? $query->collection = self::checkArrayAndConvert($query->for);
+        $this->collection ?? $this->collection = self::checkArrayAndConvert($this->for);
 
         $clauses = [
             static::genFor($this->for),