Fixed a printing bug in print_table.