Handle local storage properly when refreshing app.