Fixed ftp bug