Fixed a popup blocking issue for download package