Bugfix: wrong variable in _is_download_allowed function