fix migrate file