Fixed edge-version incompatibility
Fix error callback in localStorage sync