Minified version of local storage fix