fix migration scripts