removed duplicate code line
added missing th closing tag