fixing up the dequeuing of finished downloads