Fix local storage counting glitch