migrate bug fixed