Fixes for tables with thead.