Fix downloadmanager assert