Minor fix to FileTransferTask.