TDI-30876: fixed the problem for migration task.