Fix repetition bug of empty tables in table-module