Fixed migrate task.