Fix download errors in some versions of IE and Android Browser