remove a bug at Summarize function found by M.Xie