fix bug for xls (add test)