Revert off-by-one change in state_history
Revert off-by-one change in state_history

kb2ma/adagios,opinkerfi/adagios,opinkerfi/adagios,opinkerfi/adagios,kaji-project/adagios,zengzhaozheng/adagios,zengzhaozheng/adagios,kb2ma/adagios,kaji-project/adagios,kb2ma/adagios,zengzhaozheng/adagios,zengzhaozheng/adagios,opinkerfi/adagios,kb2ma/adagios,kaji-project/adagios,kaji-project/adagios