fix Call to undefined function addSummary()