Minor bug fix in stack.py