diff --git a/hosting.queues.inc b/hosting.queues.inc
index de4e648..7d7546d 100644
--- a/hosting.queues.inc
+++ b/hosting.queues.inc
@@ -89,7 +89,7 @@ function hosting_get_queues($refresh = FALSE) {
         if ($threads <= $queue['min_threads']) {
           $threads = $queue['min_threads'];
         }
-        elseif ($thread > $queue['max_threads']) {
+        elseif ($threads > $queue['max_threads']) {
           $threads = $queue['max_threads'];
         }
         $queue['calc_threads'] = $threads;
