remove misformatted lines in table.