fix download on firefox, explorer and safari