Fix bug with FileTransferTask