Fix bug in migration

[#62008174]