Hack to fix when Firefox does not fire progress event.