localstorage fixes