Fix to indexedDB storage update (cycle closure bug).