Fixes error in migration.