diff --git a/Providers/ModulesServiceProvider.php b/Providers/ModulesServiceProvider.php
index <HASH>..<HASH> 100755
--- a/Providers/ModulesServiceProvider.php
+++ b/Providers/ModulesServiceProvider.php
@@ -40,6 +40,8 @@ class ModulesServiceProvider extends ServiceProvider
      */
     public function register()
     {
+        $this->app->bind(\Spatie\MediaLibrary\Media::class,  \Modules\Core\Entities\Media::class);
+
         $this->registerModuleVendorDependencies();
     }
replace the base media class with the core implementation in the ioc, medialibrary:regenerate works now properly