Fix issue of browser crash if user turn off data and download