fix migrate