fix exceedingly dumb bug in migration script