Fixed logic of migration.