migrate bug fix