Bugfix: Nested tables with headers and footers were not handled correctly and could overlap with the region-after.