Fixed a bug with AutomaticMigrationsEnabled