queue2stack; fix bug