Fixed weird bug with ftp check