fixing migrate error