fixes issue where download.count returns nil