diff --git a/src/Cms/Orm/CmsFileQuery.php b/src/Cms/Orm/CmsFileQuery.php
index <HASH>..<HASH> 100644
--- a/src/Cms/Orm/CmsFileQuery.php
+++ b/src/Cms/Orm/CmsFileQuery.php
@@ -204,6 +204,7 @@ class CmsFileQuery extends Query
 
         $record = (new self())
             ->whereName()->equals($record->name)
+            ->whereActive()->equals(true)
             ->orderDescId()
             ->findFirst();
Fix nowego uploadera (#<I>)