fix indexeddb issue