Fixed the situation where table header had other li elements in the table.