fix stack queue