stack_queue fix