Bug fix in summary method