Fix detached migration with exec.