Fixed bug in summary page generation