fix migrate proc