fix file not found exception if download fail