main table fix