fix ringqueue

fix ringqueue single mode