Several fixes to table classes.