Try to fix bug of file transfer fail.