fixed a syntax issue in ftp logic