localstorage fix