Fix end of table