diff --git a/src/Repositories/NodesRepository.php b/src/Repositories/NodesRepository.php
index <HASH>..<HASH> 100644
--- a/src/Repositories/NodesRepository.php
+++ b/src/Repositories/NodesRepository.php
@@ -32,7 +32,7 @@ class NodesRepository extends AbstractModelsRepository
 
         if( $this->isQueryingOnlyActiveNodes() )
         {
-            $query->where( 'active', true );
+            $query->active();
         }
 
         return $query;
fix incorrect query condition for active nodes