fixed the table output glitch