fixed bug related to ftpwrapper