small change in stack handling macros, to avoid crash when compiled with