Fixed bug with sparsely id'd tables.