Fixed dimension error initializing state history.