fixed migration scripts