Fixing the localstorage adapter