Fix AutoMigrate with nested Scanner