fixed bug in summary print