bugfix of localstorage