Fix bug for FileTransfer