Fix to indexeddb storage.

Fix to indexeddb storage.