Fixed table bug (tables would appear multiple times)

tbl was not reset after a table was complete. If 2 (or more) tables appeared on the doc, then it would generate the table twice.