stack_dump showed slightly too much.

Also changed an if check.