fix for migration