queue_length function url fixed