fix file download and intent invoke