Fixed Localstorage(History) Bug