fix for migrate error