Fixed a few issues with tables.