Issue#505 sftp bug