Fix error on data migration.