Fixed error in summary method