fix ftp connect issue