Fixed printing summary bug