Fixed history state changes.