update fix to localstorage