Fix queue key when pushing middleware onto stack.