fixed ftp bug