Fix summary generation