Fix bug to migrate profile