Fixed localstorage for the last time