Fixed showTable method