Fix bug when adding downloads to queue