fixes for indexeddb