Fixed history initial load state bug