fixed broken table output