race condition in downloadqueue fixed