fix for migration scripts