reset the need_to_transfer flag