Better detection of table heading