fix stack demo