avoid empty file on the FTP