fix bug of generateXLS