fixed a bug that occurs when you start the migration.