fix: local storage bug (thanks @cmaher)