fixed error at summarize