fix bugs in summary.gts()