fix duplicate </th>, refs #998