fixing migrate