fix bugs of using multi-queue, workable version