History initial load state bug fix