fixed a queue_length bug in ADVANCE_MODE:LB