Fix state history