localstorage error fixed