diff --git a/gnucash/report/report-system/html-table.scm b/gnucash/report/report-system/html-table.scm
index 41a615fe35..97615b64ac 100644
--- a/gnucash/report/report-system/html-table.scm
+++ b/gnucash/report/report-system/html-table.scm
@@ -326,7 +326,7 @@
(record-modifier 'num-rows))
(define (gnc:html-table-num-columns table)
- (apply max (map length (gnc:html-table-data table))))
+ (apply max (cons 0 (map length (gnc:html-table-data table)))))
(define (gnc:html-table-append-row/markup! table markup newrow)
(let ((rownum (gnc:html-table-append-row! table newrow)))