Fix a bug where back to back tables weren't rendered correctly