fix stack.cpp