Fix the table bugs.