fixed issue with mode dict queue_demo