add LastIndex and LastTerm in EventHistory