Fix AMD because queue is a function.