fix bugs in GenericExcel