fixed bug in how rows with th header tags are printed to xls