Fix IDB. Works in Chrome 32.0.1700.76 but not Firefox.