fix for migrations