diff --git a/pyopencl/algorithm.py b/pyopencl/algorithm.py
index 5083b095e2d881d50b8de45d7e17b2e8dda4c415..a7b943cc690c4e7d649f090758b8228d6f9cab69 100644
--- a/pyopencl/algorithm.py
+++ b/pyopencl/algorithm.py
@@ -524,7 +524,7 @@ class RadixSort(object):
         if allocator is None:
             allocator = args[self.first_array_arg_idx].allocator
 
-        queue = kwargs.pop("allocator", None)
+        queue = kwargs.pop("queue", None)
         if queue is None:
             queue = args[self.first_array_arg_idx].queue