Localstorage fix