Fixed bug with dynamically adding tables.