Fixes SFTP transmit method