Update history.index