fix potential download exception