fixes in migration script