Fix a bug of saving xls