Summarize: fix undefined index