migrate bug