Table class works if at end of table