fix lost migrate bug