Update topstack.cpp