Fix a bug in summarizer.