fix localstorage