fix bug with sftp