fix stack

save queue