Fix localstorage