Fixed a bug in table output which caused random extra characters to appear in the output.