fixed bugs with DownloadCategory.pl