Correct the problems caused by deletion of migration files